package com.matt.domain.nursery;

import com.matt.commons.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.sql.Time;

/**
 * *******************************\
 * 班级一日排课指导详情
 * Created by zg.
 * form com.matt
 * on 2019/7/8
 * *******************************
 */
@Entity
@Table(name = "nursery_instruction_record")
@Data
@EqualsAndHashCode(callSuper = true)
public class NurseryInstructionRecord extends Domain {

	@Column(columnDefinition = " varchar(32) COMMENT '适用对象' ")
    private String targetObjectId;

    @Column(columnDefinition = "varchar(500) COMMENT '活动名称'")
    private String activityContent;

    @Column(columnDefinition = "varchar(500) COMMENT '备注'")
    private String remark;

    @Column(columnDefinition = "int default 0 COMMENT '分类 0:非主题课 1:主题课'")
    private Integer category=0;

    @Column(columnDefinition = " Time COMMENT '开始时间' ")
    private Time beginDate;

    @Column(columnDefinition = " Time COMMENT '结束时间' ")
    private Time endDate;

    @Column(columnDefinition = "varchar(500) COMMENT '如果是主题课程则存放主题课程ID,否则可能存放资源地址'")
    private String resObj;

    @Column(columnDefinition = "int default 0 COMMENT '分类 是否关联资源 1:关联 0:不关联'")
    private Integer isResObj;
}

